import { _post, _get, _put } from '../request';
// 获取商品分类
export function getActiveList(data) {
  return _post({
    url: `crm/pt/plan-activitys/action/list-page`,
    data,
  });
}
// 新增分类
export const addActive = (data) => {
  return _post({
    url: `crm/pt/plan-activitys/action/start-plan`,
    data,
  });
};
// 审核
export const approveActive = (data) => {
  return _post({
    url: `crm/pt//plan-activitys/action/audit-plan`,
    data,
  });
};
export const updateActive = (data) => {
  return _put({
    url: `crm/pt/plan-activitys/action/update`,
    data,
  });
};
// 获取单个详情
export const getActiveDetail = (data) => {
  return _get({
    url: 'crm/pt/plan-activitys/action/detail',
    data,
  });
};
// 操作
export const getActiveSetting = (data) => {
  return _put({
    url: 'crm/pt/plan-activitys/action/operator',
    data,
  });
};
